package com.swanclouds.model.account.builder;

import com.swanclouds.common.Buildable;
import com.swanclouds.model.account.LdapGroup;

import java.util.List;

/**
 * @author 张立强
 * @version jdk1.8.0
 */
public interface LdapGroupBuilder extends Buildable.Builder<LdapGroupBuilder, LdapGroup> {

    LdapGroupBuilder GroupName(String groupName);
    LdapGroupBuilder GroupFolder(String groupFolder);
    LdapGroupBuilder GroupDomain(String groupDomain);
    LdapGroupBuilder GroupRole(String groupRole);

    /**
     * Ldap用户组的登录规则 数组，数组中是字符串，可填多个，形如：["Rule1","Rule2","Rule3"]
     * @param groupLoginRule 登录规则
     * @return the builder ldap group
     */
    LdapGroupBuilder GroupLoginRule(List<String> groupLoginRule);

    /**
     * Ldap用户组的登录接口数组，数组中是字符串，可填多个
     * @param groupLoginInterface 登录接口
     * @return  the builder ldap group
     */
    LdapGroupBuilder GroupLoginInterface(List<String> groupLoginInterface);
}
